package com.cloud.test.usercustomer.config;


import com.netflix.client.config.IClientConfig;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration
public class RibbonConfig {

//    @Autowired
//    IClientConfig config;

//    @Bean
//    @ConditionalOnMissingBean
//    public IRule ribbonRule(IClientConfig config) {
//        return new RandomRule();
//    }
//    @Bean
//    @ConditionalOnMissingBean
//    public IRule ribbonRule() {
//        return new RandomRule();
//    }
}
